import request from '@/utils/request'

// 查询评教列表
export function listEva(query) {
  return request({
    url: '/edu/eva/list',
    method: 'get',
    params:query,
  })
}


export function listEvaById(query) {
  return request({
    url: '/edu/eva/listById',
    method: 'get',
    params:query,
  })
}


// 查询评教详细
export function getEva(teaEvaId) {
  return request({
    url: '/edu/eva/' + teaEvaId,
    method: 'get'
  })
}

// 新增评教
export function addEva(data) {
  return request({
    url: '/edu/eva',
    method: 'post',
    data: data
  })
}

// 修改评教
export function updateEva(data) {
  return request({
    url: '/edu/eva',
    method: 'put',
    data: data
  })
}

// 删除评教
export function delEva(teaEvaId) {
  return request({
    url: '/edu/eva/' + teaEvaId,
    method: 'delete'
  })
}

// 开始评教接口
export function begin() {
    return request({
      url: '/edu/eva/begin',
      method: 'get'
    })
  }

  // 结束评教接口
export function end() {
  return request({
    url: '/edu/eva/end',
    method: 'get'
  })
}

// 是否可以评教
export function getEvaByTime() {
  return request({
    url: '/edu/eva/getBegin',
    method: 'get'
  })
}

